﻿using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;
using System.Data;

namespace GMS.Dinasty.Reporting
{
    public partial class XtraReport1 : DevExpress.XtraReports.UI.XtraReport
    {
        public XtraReport1()
        {
            InitializeComponent();
            LoadTable();
        }
        private void LoadTable()
        {
            for (int i = 0; i < 9; i++)
            {
                DataRow dr = dataSet1.Tables["sourceTable"].NewRow();
                dr["order"] = i.ToString();
                dr["caption"] = "Металлочерепица\r\nМеталлочерепица\r\nМеталлочерепица\r\n";
                dr["units"] = "Кв. м.";
                dr["quantity"] = "10.2321";
                dr["price"] = "85.69";
                dr["summ"] = "45698,36";
                dataSet1.Tables["sourceTable"].Rows.Add(dr);

            }
        }

    }
}
